const express =require('express')
const app = express()
//调用express.static（）方法托管
//增加访问前缀索引
app.use('/public',express.static('./public'))
//有了这层前缀才能访问到public
app.listen(80,()=>{
    console.log('web server running')
})